package com.qyhl.cloud.webtv.yunshang.serviceimpl;

import android.content.Context;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.qyhl.cloud.webtv.yunshang.R;
import com.sobey.cloud.webtv.yunshang.config.ChannelConfig;
import com.qyhl.webtv.commonlib.constant.ServicePathConstant;
import com.qyhl.webtv.commonlib.service.ChannelConfigService;

@Route(path = ServicePathConstant.GET_CONFIG_INFO)
public class ChannelConfigImpl implements ChannelConfigService {

    @Override
    public int getSiteId() {
        return ChannelConfig.SITE_ID;
    }

    @Override
    public String getBannerID() {
        return ChannelConfig.BannerID;
    }

    @Override
    public String getPID() {
        return ChannelConfig.PID;
    }

    @Override
    public String getADV_APPKEY() {
        return ChannelConfig.ADV_APPKEY;
    }

    @Override
    public String getSITE_NAME() {
        return ChannelConfig.SITE_NAME;
    }

    @Override
    public String getLEAN_CLOUD_APPKEY() {
        return ChannelConfig.LEAN_CLOUD_APPKEY;
    }

    @Override
    public String getLEAN_CLOUD_APPID() {
        return ChannelConfig.LEAN_CLOUD_APPID;
    }

    @Override
    public String getUMENG_CHANNEL_ID() {
        return ChannelConfig.UMENG_CHANNEL_ID;
    }

    @Override
    public String getUMENG_APP_KEY() {
        return ChannelConfig.UMENG_APP_KEY;
    }

    @Override
    public String getSHARE_WEIXIN_APPSECRET() {
        return ChannelConfig.SHARE_WEIXIN_APPSECRET;
    }

    @Override
    public String getSHARE_WEIXIN_APPID() {
        return ChannelConfig.SHARE_WEIXIN_APPID;
    }

    @Override
    public int getAppLauncherIcon() {
        return R.mipmap.ic_launcher;
    }

    @Override
    public String getUMAppKey() {
        return ChannelConfig.UMENG_APP_KEY;
    }

    @Override
    public String getUMChannlId() {
        return ChannelConfig.UMENG_CHANNEL_ID;
    }

    @Override
    public String getSHARE_QQ_APPSECRET() {
        return ChannelConfig.SHARE_QQ_APPSECRET;
    }

    @Override
    public String getSHARE_QQ_APPID() {
        return ChannelConfig.SHARE_QQ_APPID;
    }

    @Override
    public String getSceneUrl() {
        return ChannelConfig.SCENE_URL;
    }

    @Override
    public String getCivilizedUrl() {
        return ChannelConfig.STREET_BASE_URL;
    }

    @Override
    public String getMicroVideoUrl() {
        return ChannelConfig.MICRO_VIDEO_URL;
    }

    @Override
    public String getActivityUrl() {
        return ChannelConfig.ACTIVITY_URL;
    }

    @Override
    public String getCircleUrl() {
        return ChannelConfig.CIRCLE_URL;
    }

    @Override
    public String getUserCenterUrl() {
        return ChannelConfig.UCENTER_URL;
    }

    @Override
    public String getChatRoomUrl() {
        return ChannelConfig.CHAT_ROOM;
    }

    @Override
    public String getSocketUrl() {
        return ChannelConfig.SOCKET_URL;
    }

    @Override
    public String getLuckDrawUrl() {
        return ChannelConfig.LUCK_DRAW_URL;
    }

    @Override
    public String getIntegralUrl() {
        return ChannelConfig.INTEGRAL_URL;
    }

    @Override
    public String getComplainUrl() {
        return ChannelConfig.COMPLAIN_URL;
    }

    @Override
    public String getGoldUrl() {
        return ChannelConfig.GOLD_URL;
    }

    @Override
    public String getLeanCloudAppkey() {
        return ChannelConfig.LEAN_CLOUD_APPKEY;
    }

    @Override
    public String getLeanCloudAppid() {
        return ChannelConfig.LEAN_CLOUD_APPID;
    }

    @Override
    public String getCachePath() {
        return ChannelConfig.CACHE_PATH;
    }

    @Override
    public void setSiteName(String siteName) {
        ChannelConfig.SITE_NAME = siteName;
    }

    @Override
    public void setLuckDrawUrl(String url) {
        ChannelConfig.LUCK_DRAW_URL = url;
    }

    @Override
    public String getXiaoMiId() {
        return ChannelConfig.XIAO_MI_APPID;
    }

    @Override
    public String getXiaoMiKey() {
        return ChannelConfig.XIAO_MI_APPKEY;
    }

    @Override
    public String getOppoAppKey() {
        return ChannelConfig.OPPO_APPKEY;
    }

    @Override
    public String getOppoAppSecret() {
        return ChannelConfig.OPPO_APPSECRET;
    }

    @Override
    public String getPrivacy() {
        return ChannelConfig.PRIVACY_URL;
    }

    @Override
    public String getQuestionUrl() {
        return ChannelConfig.QUESTION_URL;
    }

    @Override
    public String getPtgAdId() {
        return ChannelConfig.PTG_MEDIA_ID;
    }

    @Override
    public String getPtgAdSecret() {
        return ChannelConfig.PTG_MEDIA_SECRET;
    }

    @Override
    public String getPtgSplashId() {
        return ChannelConfig.PTG_ADV_SCREEN;
    }

    @Override
    public String[] getPtgHomeId() {
        return ChannelConfig.PTG_ADV_HOME;
    }

    @Override
    public String getPtgDetailId() {
        return ChannelConfig.PTG_ADV_DETAIL;
    }

    @Override
    public String getSdkListUrl() {
        return ChannelConfig.SDK_LIST_URL;
    }

    @Override
    public String getHLSchoolUrl() {
        return ChannelConfig.SCHOOL_HELAN_URL;
    }


    @Override
    public String getBaseUrl() {
        return ChannelConfig.URL;
    }

    @Override
    public String getShopUrl() {
        return ChannelConfig.SHOP_BASE_URL;
    }

    @Override
    public String getScoreUrl() {
        return ChannelConfig.SCORE_BASE_URL;
    }

    @Override
    public String getSchoolUrl() {
        return ChannelConfig.SCHOOL_URL;
    }


    @Override
    public String getRecNewsUrl() {
//        if( ChannelConfig.URL.endsWith("NewsControl/") ){
//            return ChannelConfig.URL;
//        }
        return ChannelConfig.CATCH_URL;
    }

    @Override
    public void init(Context context) {

    }
}
